package finance

class Currency {
	
	Long id
	Long version
	String symbol
	String name
	BigDecimal rate_to_usd
	Date last_update
	
    static constraints = {
    }
	
	static mapping = {
		table 'currency'
        columns {
        	id column: 'currency_id'
        }
	}
	
	String toString() {
		return "Currency: ${id}, ${symbol}, ${name}, ${rate_to_usd}, ${last_update}"
	}
}